package com.dddd.blog.blogsp.entity;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.concurrent.ScheduledFuture;

@Data
public class Task implements Serializable {
    private String id;
    private String name;
    private String cron;
    private Date createTime;
    private Date updateTime;
    private ScheduledFuture<?> future;


    @Override
    public String toString() {
        return "Task{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", cron='" + cron + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
